package li.webqq.api;

import li.http.Request;
import li.webqq.Const;
import li.webqq.util.StringUtil;

/**
 * @author 明伟
 */
public class GetImageRequest extends Request implements Const {
    private String uin;

    public void setUin(String uin) {
        this.uin = uin;
    }

    public GetImageResponse execute() {
        super.setUrl(URL_GETIMAGE);

        super.setParameter("aid", APP_ID);
        super.setParameter("r", StringUtil.random());
        super.setParameter("uin", uin);

        return super.execute(new GetImageResponse());
    }
}